<include file="Public/header"/>

<div id="app">
    <!-- sidebar -->
    <include file="Public/left"/>
    <!-- / sidebar -->
    <div class="app-content">
        <!-- start: TOP NAVBAR -->
        <include file="Public/headernav"/>
        <!-- end: TOP NAVBAR -->
        <div class="main-content">
            <div class="wrap-content container" id="container" >
                <!-- start: PAGE TITLE -->
                <section id="page-title">
                    <div class="row">
                        <div>
                            <h1 class="mainTitle">文章管理</h1>
                            <span class="mainDescription">{$msgtitle}</span>
                        </div>
                    </div>
                </section>
                <!-- end: PAGE TITLE -->
                <!-- start: YOUR CONTENT HERE -->
                <!-- Start 平台文章发布-->
                <div class="container-fluid container-fullw bg-white" id="own_plat">
                    <form action="" role="form" id="form2" novalidate="novalidate" method="post">
                        <div class="col-md-10 ">
                            <div class="form-group">
                                <label class="control-label">
                                    标题 <span class="symbol required" aria-required="true"></span>
                                </label>
                                <input type="text" name="title" placeholder="请填写标题" value="{$data.title}" class="form-control"/>
                            </div>
                            <!-- <div class="form-group">
                                <label class="control-label">
                                    发布人 <span class="symbol required" aria-required="true"></span>
                                </label>
                                <input type="text" name="author" placeholder="请填写发布人" value="{$data.author}"
                                       class="form-control"/>
                            </div> -->
                            <div class="form-group">
                                <label class="control-label">
                                    内容 <span class="symbol required" aria-required="true"></span>
                                </label>
                                <textarea id="content" name="content" class="autosize" data-autosize-on="true" style="overflow: hidden; resize: horizontal; word-wrap: break-word; width:100%; height:800px;">{$data.content}</textarea>
                            </div>
                            <div class="form-group">
                                <button class="btn btn-primary btn-wide pull-left" type="submit">
                                    提交 <i class="fa fa-arrow-circle-right"></i>
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
                <!-- End 平台文章发布-->
                <!-- end: YOUR CONTENT HERE -->
            </div>
        </div>
    </div>
    <!--  FOOTER and SETTINGS -->

    <include file="Public/footer"/>
    <!-- end: FOOTER -->
    <!-- start: OFF-SIDEBAR -->

    <!-- end: OFF-SIDEBAR -->

</div>
<!-- start: MAIN JAVASCRIPTS -->

<include file="Public/javascript"/>

<!-- end: CLIP-TWO JAVASCRIPTS -->

<!-- start: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<script src="__PUBLIC__/bootstrap/vendor/ckeditor/adapters/jquery.js"></script>
<script src="__PUBLIC__/bootstrap/vendor/jquery-validation/jquery.validate.min.js"></script>
<!-- 配置文件 -->
<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    var ue = UE.getEditor('content');
</script>
<!-- end: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<!-- start: CLIP-TWO JAVASCRIPTS -->
<!-- <script src="__PUBLIC__/bootstrap/assets/js/main.js"></script> -->
<!-- start: JavaScript Event Handlers for this page -->
<!--<script src="__PUBLIC__/bootstrap/assets/js/form-validation.js"></script>-->

<!-- end: JavaScript Event Handlers for this page -->
<script type="text/javascript">
    $().ready(function(){
        $("#form2").validate({
            rules:{
                title:"required",
             //   author:"required",
                content:"required"

            },
            messages:{
                title:'请文章标题',
               // author:'请输入作者',
                content:'请输入文章内容'
            }
        })
    })
</script>
</body>
</html>
